package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.CategoryDao;
import com.ldatum.crm.daoImpl.CategoryDaoImpl;
import com.ldatum.crm.domain.Category;
import com.ldatum.crm.service.CategoryService;

public class CategoryServiceImpl implements CategoryService {

	CategoryDao categoryDao = new CategoryDaoImpl();
	@Override
	public List<Category> list() throws Exception {
		return categoryDao.list();
	}

	@Override
	public Category findById(int id) throws Exception {
		return categoryDao.findById(id);
	}

	@Override
	public int deletes(String ids) throws Exception {
		return categoryDao.deletes(ids);
	}

	@Override
	public int save(Category category) throws Exception {
		return categoryDao.save(category);
	}

}
